package com.zoshine.zzg.dao;


import com.zoshine.zzg.pojo.GoodsPublishDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**上架商品详情DAO
 * @author 田沛凌
 * @time 2017/7/18 11:00
 */
@Repository
public interface GoodsPublishDetailDao extends  BaseDao<GoodsPublishDetail>{

    List<GoodsPublishDetail>selectByPublicId(Long id);

    void updateGoodsPublishDetailStatus(@Param("status") Integer status,@Param("list") List<Long> list);

    void batchUpdateStatus(@Param("goodsStatus") Integer goodsStatus, @Param("list") List<Long> list, @Param("updateTime") Date updateTime);

    void deleteAll();

    GoodsPublishDetail selectForCheck(GoodsPublishDetail check);

    int upAuditCheck(List<Long> idList);

    int upAuditPassCheck(List<Long> idList);

    int upAuditFailCheck(List<Long> idList);

    int downAuditCheck(List<Long> idList);

    int downAuditPassCheck(List<Long> idList);

    int downAuditFailCheck(List<Long> idList);

    int downCheck(List<Long> idList);

    int delCheck(List<Long> idList);

    int failConfirmCheck(List<Long> idList);

    List<GoodsPublishDetail> selectListForExport(GoodsPublishDetail goodsPublishDetail);
}